import request from '@/utils/request'

// 商品列表
export function getList (params) {
  return request({
    params,
    url: '/back/findGoodsByCondition'
  })
}

// 分类列表
export function findCategoryList (params) {
  return request({
    params,
    url: '/back/findCategoryList'
  })
}

// 新增分类
export function addCategory (params) {
  return request({
    method: 'PUT',
    params,
    url: '/back/addCategory'
  })
}

// 删除分类
export function deleteCategory (params) {
  return request({
    method: 'DELETE',
    params,
    url: '/back/deleteCategory'
  })
}